package edu.zut.cs.software.example.square.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import edu.zut.cs.software.example.service.GenericManager;
import edu.zut.cs.software.example.square.domain.Square;
/**
 * 
 * @author zhangjiahau 
 *
 */
public interface SquareManager extends GenericManager<Square,Long> {

	
	
	/**
	 * 
	 * @param studentid
	 * @param pagenum
	 * @param pageSize
	 * @return
	 */
	List<Square> getBySquare(int pagenum,int pageSize);
	
	/**
	 * 
	 * @return
	 */
	int getSquareCounts();
	
	/**
	 * 
	 * @param message
	 * @return
	 */
	int getSquareBytitleCounts(String title);
	
	/**
	 * 
	 * @param title
	 * @param pagenum
	 * @param pageSize
	 * @return
	 */
	List<Square> findBytitle(String title,int pagenum,int pageSize);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	int deleteById(int id);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public Square getUpdateSquService(int id);
	
	/**
	 * 
	 * @param square
	 * @return
	 */
	public int editsquare(Square space);
}
